<script setup>
import { ref } from 'vue';
import obj from '@/components/a.js';
import { useRoute } from 'vue-router';

const route = useRoute();

console.log(obj.a, route.meta.a, route.query.a, 'button');
route.meta.a = '888';
console.log(obj.a, route.meta.a, route.query.a, 'button--22');

const count = ref(0);
window.clickHandler = () => {
  count.value++;
  console.log('--clickHandler--', count.value);
};
const html = `<button onclick="clickHandler()">按钮 ${count.value}</button>`;
</script>

<template>
  <div>Button 按钮</div>

  <div v-html="html"></div>
  count: {{ count }}
</template>
